package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.bo.CommentBo;
import com.gitee.pojo.Comment;

public interface ICommentService extends IService<Comment> {

    /**
     * 添加评价
     * @param userId
     * @param commentBo
     * @return
     */
    Boolean addComment(Integer userId, CommentBo commentBo);

    /**
     * 更新评价
     * @param userId
     * @param commentBo
     * @return
     */
    Boolean updateComment(Integer userId, CommentBo commentBo);

    /**
     * 删除评价
     * @param userId
     * @param orderId
     * @return
     */
    Boolean deleteComment(Integer userId, Integer orderId);
}
